cmake_minimum_required(VERSION 3.25)

project(device)

add_library(${PROJECT_NAME} STATIC
        include/motor.h)

file(GLOB_RECURSE source CONFIGURE_DEPENDS src/*.cpp include/*.hpp include/*.h UI/*.h UI/*.cpp UI/UI_data/*.h
        UI/UI_data/*.cpp)


target_sources(${PROJECT_NAME} PRIVATE ${source})
# 修改包含路径设置
target_include_directories(${PROJECT_NAME} PUBLIC
        include
        ${CMAKE_CURRENT_SOURCE_DIR}/UI  # 添加UI目录到包含路径
)
target_link_libraries(${PROJECT_NAME} PRIVATE os)